{% extends "IMTUserBundle::layout-connexion.html.twig" %}

{% block content %}
<div id="login-circle">
	<section id="login-form" class="login-inner-form" data-angle="0">
		<h1>MyTime</h1>
		{% if error %}
		<div class="alert alert-danger" style="margin-left:15px; margin-right:15px;">{{ error|trans({}, 'FOSUserBundle') }}</div>
		{% endif %}
		<form class="form-vertical" action="{{ path("fos_user_security_check") }}" method="POST">
			
			<input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
			
			<div class="control-group-merged">
				<div class="control-group">
					<input type="text" placeholder="Identifiant" id="input-username" class="big required" name="_username" value="{{ last_username }}" />
				</div>
				<div class="control-group">
					<input type="password" placeholder="Mot de passe" id="input-password" name="_password" class="big required" />
				</div>
			</div>
			<div class="control-group">
				<label class="checkbox">
					<input type="checkbox" id="remember_me" name="_remember_me" value="on" class="uniform" />
					Se souvenir de moi
				</label>
			</div>
			<div class="form-actions">
				<button type="submit" class="btn btn-success btn-block btn-large">Connexion</button>
			</div>
		</form>
	</section>
	<section id="register-form" class="login-inner-form" data-angle="90">
		<h1>Demande d'enregistrement</h1>
		<form action="{{ path('fos_user_registration_register') }}" {{ form_enctype(form) }} method="POST" class="fos_user_registration_register">
		    
		    <div class=" control-group">
		    	<label class=" control-label required" for="name">Nom :<span>*</span></label>
		    	<div class=" controls">
		    		<input type="text" class=" not-removable" required="required" name="name" id="name">
		    	</div>		    	
		    </div>
		    
		    <div class=" control-group">
		    	<label class=" control-label " for="firstname">Prénom</label>
		    	<div class=" controls">
		    		<input type="text" name="firstname" id="firstname">
		    	</div>		    	
		    </div>
		
			{{ form_widget(form) }}
		    
		    <div class="form-actions">
		        <input type="submit" class="btn btn-success btn-block btn-large" value="S'inscrire" />
		    </div>
		</form>
	</section>
	<section id="forget-form" class="login-inner-form" data-angle="180">
		<h1>Renouveler le mot de passe</h1>
		<form class="form-vertical" action="#">
			<div class="alert alert-info">
				<p>Cette section n'est pas disponible pour le moment</p>
			</div>
		</form>
	</section>
</div>
{% endblock content %}